-- GENERATED SPELL FOR [Warmaster Laggrond] --


function spell0_13840(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13840', 582, 1)
end

function spell1_13840(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13840', 5308, 1)
end

function Sorts_13840(pUnit, Event)
local choix_sorts_13840 = math.random(0, 1)
if choix_sorts_13840 == 0 then
pUnit:RegisterEvent('spell0_13840', 1, 1)
end
if choix_sorts_13840 == 1 then
pUnit:RegisterEvent('spell1_13840', 1, 1)
end
end

function mob13840_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13840', math.random(1500, 3000), 1)
end

function mob13840_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13840_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13840_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13840, 1, 'mob13840_Action')
RegisterUnitEvent(13840, 2, 'mob13840_Leave')
RegisterUnitEvent(13840, 3, 'mob13840_Kill')
RegisterUnitEvent(13840, 4, 'mob13840_Die')
